function save(id){ 
		  var first=document.getElementsByName('firstname');  
		  var second=document.getElementsByName('secondname');
		  var third=document.getElementsByName('thirdname');
		  var s1='';    
		  for(var i=0; i<first.length; i++){    
		    if(first[i].checked) 
		    s1+=first[i].value+',';      
		  }    
		  var s2='';    
		  for(var i=0; i<second.length; i++){    
		    if(second[i].checked) 
		    s2+=second[i].value+',';      
		  }    
		  var s3='';    
		  for(var i=0; i<third.length; i++){    
		    if(third[i].checked) 
		    s3+=third[i].value+',';      
		  }  
		  $.ajax({
			     type: 'POST',
			     url: '/manager/insert_tpartpower' ,
			     data: {
			    	id:id,
			    	s1:s1,
			    	s2:s2,
			    	s3:s3
			     } ,
			     success:function(data){
			    	alert("添加权限成功!");
			     }
			});
		  	  
}
